﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

using SydEnergiPrototype.Kernel;
using SydEnergiPrototype.ViewModel;

namespace SydEnergiPrototype.View
{
    public partial class DisplayCabinetView : PhoneApplicationPage
    {
        public IDisplayCabinetViewModel ViewModel { get; private set; }

        public DisplayCabinetView()
        {
            InitializeComponent();
            ViewModel = IoCContainer.Get<IDisplayCabinetViewModel>();
            LayoutRoot.DataContext = ViewModel;
        }

        public void btnEditButton_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/View/DataView.xaml#EditData", UriKind.Relative));
        }

        private void AddData_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/View/DataView.xaml#AddData", UriKind.Relative));
        }
    }
}